import React from 'react'
import {Link,Outlet} from 'react-router-dom'

export default function HotLession() {
  return (
    <div>
        <h2>热门课程</h2>
        <ul>
          <li><Link to="/product/hot/java">java</Link> </li>
          <li><Link to="/product/hot/h5">h5</Link></li>
          <li><Link to="/product/hot/test">test</Link></li>
        </ul>
        {/* 配置三级路由的出口 */}
        <Outlet></Outlet>
    </div>
  )
}
